<div class="add-phrase">
    <div class="heading">
        <h3>Обновить группу</h3>
    </div>
    <div class="content">
        <div class="add-content">
            <form action="{{ object.get_update_url }}" method="post">
            {% csrf_token %}
            {% for field, errors in form.errors.items %}
                {% for error in errors %}
                    <span>*{{ error }}</span>
                {% endfor %}
            {% endfor %}
            {% for field in form %}
                <div class="field">
                    {{ field.errors }}
                    {{ field.label }}
                    {{ field }}
                </div>
            {% endfor %}
            <input class="add" type="submit" value="Изменить">
        </form>
    </div>
</div>
